package net.wanho.util;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import net.wanho.vo.AjaxResult;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Author：汤小洋
 * Date：2024-02-26 15:04
 * Description：<描述>
 */
public class ExceptionUtil {

    /**
     * 处理异常方法
     */
    public static AjaxResult handleException(@RequestParam Map<String,Object> map, BlockException e){
        return AjaxResult.error("Sentinel限流，请稍后再试。。。。");
    }

}
